package com.corechina.apex_osswords.domain.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corechina.apex_osswords.domain.entity.CoreEnterprise;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 企业表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2022-12-09
 */
@Component
public interface CoreEnterpriseMapper extends BaseMapper<CoreEnterprise> {

    IPage<CoreEnterprise> getList(Page page, @Param("name") String name);

    @Select("select max(serial_number) from core_enterprise")
    String getMaxSerialNumber();

}
